home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / drivers / mgewn31.zip / INSTDGIS.BAT < prev    next >
DOS Batch File  |  1991-05-03  |  5KB  |  147 lines

  1. echo off
  2. echo Usage: instdgis [path] [source drive:]
  3.  
  4. if null%2==null %2=a:
  5. if null%1==null goto default
  6.  
  7. echo Installing Dgis in %1
  8. echo Making directory %1
  9. md %1 > nul
  10. echo Copying dgis.exe to %1\dgis.exe
  11. copy %2\dgis.exe %1\dgis.exe > nul
  12. if not exist %1\dgis.exe goto error
  13. echo Copying dgis.out to %1\dgis.out
  14. copy %2\dgis.out %1\dgis.out > nul
  15. if not exist %1\dgis.out goto error
  16. echo Copying hwconfig.exe to %1\hwconfig.exe
  17. copy %2\hwconfig.exe %1\hwconfig.exe > nul
  18. if not exist %1\hwconfig.exe goto error
  19. echo Copying hwconfig.inf to %1\hwconfig.inf
  20. copy %2\hwconfig.inf %1\hwconfig.inf > nul
  21. if not exist %1\hwconfig.inf goto error
  22. echo Copying hwconfig.csm to %1\hwconfig.csm
  23. copy %2\hwconfig.csm %1\hwconfig.csm > nul
  24. if not exist %1\hwconfig.csm goto error
  25. echo Copying gsp800.out to %1\gsp800.out
  26. copy %2\gsp800.out %1\gsp800.out > nul
  27. if not exist %1\gsp800.out goto error
  28. echo Copying gsp1024.out to %1\gsp1024.out
  29. copy %2\gsp1024.out %1\gsp1024.out > nul
  30. if not exist %1\gsp1024.out goto error
  31.  
  32. if not exist @0f5f.adf goto skip1adf
  33. echo Copying @0f5f.adf to %1\@0f5f.adf
  34. copy %2\@0f5f.adf %1\@0f5f.adf > nul
  35. if not exist %1\@0f5f.adf goto error
  36. :skip1adf
  37.  
  38. echo rem this line loads the graphics controller software > %1\autoexec.new
  39. echo %1\dgis >> %1\autoexec.new
  40.  
  41. rem Installing AT1050 specific files
  42. if not exist %2\lca.bin goto skip1lca
  43. echo Copying lca.bin to %1\lca.bin
  44. copy %2\lca.bin %1\lca.bin > nul
  45. if not exist %1\lca.bin goto error
  46. :skip1lca
  47.  
  48. if not exist %2\at1050.sys goto skip1sys
  49. echo Copying at1050.sys to %1\at1050.sys
  50. copy %2\at1050.sys %1\at1050.sys > nul
  51. if not exist %1\at1050.sys goto error
  52. echo rem this line specifies how to load the AT1050 specific device driver >%1\config.new
  53. echo device=%1\at1050.sys >> %1\config.new
  54. :skip1sys
  55.  
  56. %1\hwconfig
  57.  
  58. if not exist %1\autoexec.new goto noexec1
  59. echo Insert the lines from file %1\autoexec.new into your autoexec.bat
  60. if not exist %1\config.new goto noexec1
  61. echo file and the lines from file %1\config.new into your config.sys
  62. :noexec1
  63. goto done1
  64.  
  65. if not exist %1\config.new goto noconfig1
  66. echo Insert the lines from file %1\config.new into your config.sys
  67. :noconfig1
  68.  
  69. :done1
  70. echo file and reboot.
  71. echo Dgis installation complete
  72. goto end
  73.  
  74. :default
  75. echo Installing Dgis in c:\dgis
  76. echo Making directory c:\dgis
  77. md c:\dgis > nul
  78. echo Copying dgis.exe to c:\dgis\dgis.exe
  79. copy %2\dgis.exe c:\dgis\dgis.exe > nul
  80. if not exist c:\dgis\dgis.exe goto error
  81. echo Copying dgis.out to c:\dgis\dgis.out
  82. copy %2\dgis.out c:\dgis\dgis.out > nul
  83. if not exist c:\dgis\dgis.out goto error
  84. echo Copying hwconfig.exe to c:\dgis\hwconfig.exe
  85. copy %2\hwconfig.exe c:\dgis\hwconfig.exe > nul
  86. if not exist c:\dgis\hwconfig.exe goto error
  87. echo Copying hwconfig.inf to c:\dgis\hwconfig.inf
  88. copy %2\hwconfig.inf c:\dgis\hwconfig.inf > nul
  89. if not exist c:\dgis\hwconfig.inf goto error
  90. echo Copying hwconfig.csm to c:\dgis\hwconfig.csm
  91. copy %2\hwconfig.csm c:\dgis\hwconfig.csm > nul
  92. if not exist c:\dgis\hwconfig.csm goto error
  93. echo Copying gsp800.out to c:\dgis\gsp800.out
  94. copy %2\gsp800.out c:\dgis\gsp800.out > nul
  95. if not exist c:\dgis\gsp800.out goto error
  96. echo Copying gsp1024.out to c:\dgis\gsp1024.out
  97. copy %2\gsp1024.out c:\dgis\gsp1024.out > nul
  98. if not exist c:\dgis\gsp1024.out goto error
  99.  
  100. if not exist @0f5f.adf goto skip3adf
  101. echo Copying @0f5f.adf to c:\dgis\@0f5f.adf
  102. copy %2\@0f5f.adf c:\dgis\@0f5f.adf > nul
  103. if not exist c:\dgis\@0f5f.adf goto error
  104. :skip3adf
  105.  
  106. echo rem this line loads the graphics controller software > c:\dgis\autoexec.new
  107. echo c:\dgis\dgis >> c:\dgis\autoexec.new
  108.  
  109. rem Installing AT1050 specific files
  110. if not exist %2\lca.bin goto skip2lca
  111. echo Copying lca.bin to c:\dgis\lca.bin
  112. copy %2\lca.bin c:\dgis\lca.bin > nul
  113. if not exist c:\dgis\lca.bin goto error
  114. :skip2lca
  115.  
  116. if not exist %2\at1050.sys goto skip2sys
  117. echo Copying at1050.sys to c:\dgis\at1050.sys
  118. copy %2\at1050.sys c:\dgis\at1050.sys > nul
  119. if not exist c:\dgis\at1050.sys goto error
  120. echo rem this line specifies how to load the AT1050 specific device driver >c:\dgis\config.new
  121. echo device=c:\dgis\at1050.sys >> c:\dgis\config.new
  122. :skip2sys
  123.  
  124. c:\dgis\hwconfig
  125.  
  126. if not exist c:\dgis\autoexec.new goto noexec2
  127. echo Insert the lines from file c:\dgis\autoexec.new into your autoexec.bat
  128. if not exist c:\dgis\config.new goto noexec2
  129. echo file and the lines from file c:\dgis\config.new into your config.sys
  130. :noexec2
  131. goto done2
  132.  
  133. if not exist c:\dgis\config.new goto noconfig2
  134. echo Insert the lines from file c:\dgis\config.new into your config.sys
  135. :noconfig2
  136.  
  137. :done2
  138. echo file and reboot.
  139. echo Dgis installation complete
  140. goto end
  141.  
  142. :error
  143. echo Dgis installation failed
  144.  
  145. :end
  146. echo on
  147.